package iqq.client;

import iqq.im.QQActionListener;
import iqq.im.event.QQActionEvent;
import iqq.im.event.QQActionEvent.Type;

public class QQCaptchaActionManager implements QQActionListener {

	private static QQCaptchaActionManager qqActionManager;

	public static QQCaptchaActionManager getInstance() {
		if (qqActionManager == null) {
			qqActionManager = new QQCaptchaActionManager();
		}
		return qqActionManager;
	}

	@Override
	public void onActionEvent(QQActionEvent event) {
		if (event.getType() == Type.EVT_OK) {
			byte[] data = (byte[]) event.getTarget();
			// 处理验证码图片
		}
	}

}
